<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="../node_modules/jquery/dist/jquery.min.js"></script>
    <script src="../dist/pandyle.js"></script>
    <title>Document</title>
</head>
<body>
    <div class="main">
        <div p-bind="class:{{age.num}}">{{age.num|add}}</div>
        <!-- <div>{{!name ? '空值' : name}}</div> -->
    </div>

    <script>
        var vm = $('.main').vm({
            name: 'rrr'
        }, false);
        vm.register('add', function (value) {
            return value + ' my name is pandarrr';
        });
        vm.run();
    </script>
</body>
</html>